package freecomm.study.commonwidget;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class Result extends Activity
{
    private ListView listView;

    protected void onCreate(Bundle savedInstanceState){
        Log.i("shit", "result start");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.result);
        listView = (ListView)findViewById(R.id.listView);
        Intent intent = this.getIntent();
        Bundle b = intent.getBundleExtra("data");
        List list = new ArrayList<String>();
        list.add(b.getString("name"));
        list.add(b.getString("pw"));
        list.add(b.getString("gender"));
        list.add(b.getString("marriage"));
        list.add(b.getString("interest"));
        list.add(b.getString("post"));
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,list);
        listView.setAdapter(adapter);
        
    }
}
